Self-modifying code
SOURCE CODE THAT ALTERS ITS INSTRUCTIONS TO THE HARDWARE WHILE EXECUTING
Self modifying code; Runtime code generation; Run-time code generation; Synthesis kernel; Synthesis microkernel; Self-authoring code; Synthesis (kernel); Self-referential machine learning; Self-modifying program; Indirectly self-modifying code; Self-modification (computing); Indirect self-modification; Dynamic self-modifying code; Dynamic self-modification; Dynamically self-modifying code
In computer science, self-modifying code (SMC) is code that alters its own instructions while it is executing – usually to reduce the instruction path length and improve performance or simply to reduce otherwise repetitively similar code, thus simplifying maintenance. The term is usually only applied to code where the self-modification is intentional, not in situations where code accidentally modifies itself due to an error such as a buffer overflow.